package com.herongo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodDetailmg {
    private static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
    private Integer goodDetailImgId;//流水id
    private Integer goodId;//商品id
    private String goodDetailImgUrl;//详情图片路径
    private Integer goodDetailImgRanking;//详情图片顺序
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = DATE_FORMAT,timezone = "GMT+8")
    private Date goodDetailImgCreatAt;//创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = DATE_FORMAT,timezone = "GMT+8")
    private Date goodDetailImgModifyAt;//修改时间
    private Good goodDetail;
    private GoodDetailContent goodDetailContent;

}
